﻿<style type="text/css">
<!--	
	@import url('<?php echo base_url(); ?>assets/css/admin/master.css');
	@import url('<?php echo base_url(); ?>assets/css/admin/menu.css');
	@import url('<?php echo base_url(); ?>assets/css/admin/style.css');
	@import url('<?php echo base_url(); ?>assets/css/admin/thickbox.css');
-->
</style>
<?php
$option_arr=array('0' => "Pending", '1' => 'Processing', '2' => "Finished");
?>

  <div id='addmenu'>
    <fieldset style="border:none">
    <form name="updateform" method="post" autocomplete="off" action="<?php echo base_url().index_page()."/adminpage/cpanel/update_status_reserve/"; ?>">

    <div id="addnew">
	
	
<div>
        <label for="cmenuname" style="color: rgb(0, 102, 153); font-weight: bold;">Change status</label>
       <select  name="status_option">
<?php

	//if (array_key_exists($row->id, $promotion_array))
	for($i=0;$i<count($option_arr);$i++)
	{
		echo "<option value=".$i;
		if ($status==$i)
		{ 
			echo " selected='selected'";
		}
		echo " >&nbsp;".$option_arr[$i]."&nbsp;</option>";
	}

?>
</select>
      </div>
      <!--<div>
        <label for="cmenuname" style="color: rgb(0, 102, 153); font-weight: bold;">Name</label>
        <input id="cmenuname_update" name="item_update" type="text" size="50" maxlength="100" value="<?php //echo $menu['name']; ?>"/>
      </div>
	  <div>
        <label for="citemname" style="color: rgb(0, 102, 153); font-weight: bold;">Price</label>
        <input id="updateprice" name="updateprice" type="text" size="20" maxlength="12" value="<?php //echo $menu['price']; ?>"/>
      </div>
      <div>
        <label for="cupdatesorting" style="color: rgb(0, 102, 153); font-weight: bold;">Ordering</label>
        <input id="cupdatesorting" name="updatesorting" type="text" size="5" maxlength="4" value="<?php //echo $menu['sorting']; ?>"/>
      </div>-->
    </div>
	<input id="id" name="update_id" type="hidden" size="5" maxlength="20" value="<?php echo $id; ?>"/>
    <div class="toolbar"  align="center">
      <p><table width="130px" border="0" align="center" cellpadding="5">
        <tr>
          <td align="center"><a onclick="javascript:document.updateform.submit();" href="#"><span  class="icon-32-save"  title="<?php echo $this->lang->line('update'); ?>"> </span><?php echo $this->lang->line('update'); ?></a></td>
          <td align="center"><a onclick="tb_remove()" href="#"><span title="<?php echo $this->lang->line('cancel'); ?>"> </span><?php echo $this->lang->line('cancel'); ?></a></td>
        </tr>
      </table></p>
    </div>  	
	</form>
  </fieldset>
  </div> 
